package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.vo.PageBeanVo;

public interface CommentService {
    //保存动态评论(返回操作之后的次数)
    Integer saveMovementComment(Comment comment);

    //删除动态评论(返回操作之后的次数)
    Integer deleteMovementComment(Comment comment);

    //分页查询指定动态的评论列表
    PageBeanVo findMovementComment(String movementId, Integer pageNum, Integer pageSize);

    //根据用户的id 和 操作的类型查询评论列表的数据
    PageBeanVo findCommentByCommentType(Integer pageNumber, Integer pageSize, int commentType, Long id);

    //动态评论-点赞
    Comment commentLike(String commentId);

    //动态评论-取消点赞
    Comment commentDisLike(String commentId);

    //视频点赞
    Integer  saveVideoComment(Comment comment);
    //视频取消点赞
    Integer deleteVideoComment(Comment comment);


    //视频评论查询
    PageBeanVo findVideoCommentList(String videoId, Integer pageNumber, Integer pageSize);
    //视频评论点赞
    void likeVideoComment(Comment comment);
    //取消视频评论点赞
    void dislikeVideoComment(Comment comment);
}
